package com.liushuai.ws;


import com.alibaba.fastjson.JSONObject;

import javax.jws.WebService;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author ：liushuai
 * @date ：Created in 2021/3/26 17:13
 * @description：${description}
 * @modified By：
 * @version: $version$
 */
@WebService(serviceName = "DemoService" , // 与接口中指定的name一致
        targetNamespace = "http://service.liushuai.com" , // 与接口中的命名空间一致,一般是接口的包名倒
        endpointInterface = "com.liushuai.ws.DemoService"// 接口地址
)
public class DemoServiceImpl implements DemoService {

    @Override
    public String sayHello(String user) {
        return user + "，现在时间：" + "(" + new Date() + ")";
    }

    @Override
    public List<String> sayHello2(String user, String cc) {
        List<String> jsonObject = new ArrayList<>();
        jsonObject.add(user);
        jsonObject.add(cc);
        return jsonObject;
    }

}

